import request from '@/utils/request'
//重置app用户密码
export function resetAppUserPassword(data) {
  return request({
    url:'/api/user/update/password',
    method: 'post',
    data
  })
}
// 获取app用户表(带分页)
export function getUserRecord(data) {
  return request({
    url:'/api/funeral-app-user/list',
    method: 'post',
    data
  })
}

// 新增app用户
export function addUserType(data) {
  return request({
    url:'/api/funeral-app-user/add',
    method: 'post',
    data
  })
}

// 根据id查询用户详情
export function getUserRecordById(data) {
  return request({
    url:'/api/funeral-app-user/show',
    method: 'post',
    data
  })
}

// 删除app用户
export function deleteUserRecord(data) {
  return request({
    url:'/api/funeral-app-user/delete',
    method: 'post',
    data
  })
}

//编辑基本信息
export function editFInfo(data) {
  return request({
    url: '/api/funeral-info/edit-funeral-info',
    method: 'post',
    data
  }).then((res)=>{
    return res.data;
  });
}

//获取基本信息详情
export function getFInfo() {
  return request({
    url:'/api/funeral-info/show-funeral-info',
    method: 'get',
   })
}

// 修改是否可以登录
export function apiUpdateStatus(data) {
  return request({
    url:'/api/funeral-app-user/update/aslogin',
    method: 'post',
    data
  })
}
